﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmListaCursos.aspx.cs" Inherits="GestionCurriculos.frmListaCursos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
        <title>CIBERTEC TOTAL</title>

            <script type="text/javascript">
                function ConfirmDelete(codCurso) {
                    if (confirm("Esta seguro de eliminar el curso seleccionado")) {
                        document.getElementById("hidCodCurso").value = codCurso;
                        document.getElementById("btnEliminarTrue").click();
                    } else {
                       document.getElementById("hidCodCurso").value = 0;
                    }
                }
             </script>


</head>
<body style="margin:auto">
    <form id="form1" runat="server">
    <div style="width:100%">
        <div style="float:left; width:40%">
            <img src="Library/Images/CibertecLogo.jpg" style="height:100px" />
        </div>
        <div style="float:right; width:20%;height:100px;text-align:left;color:#0C5394;vertical-align:middle">
            <br />           
            <span style="font-family:Comic Sans MS;font-size:18px;font-weight:bold">Intranet</span><br />
            <span style="font-family:Comic Sans MS;font-size:24px;font-weight:bold">CIBERTEC TOTAL</span>
        </div>
    </div>
    <div style="clear:both;width:100%;border-top:2px solid #0C5394">
    </div>
    <div style="width:100%;height:80%;margin-top:5px ">
    <div style="float:left;width:15%;min-height:530px">
        <div style="border:1px solid black;font-family:Comic Sans MS;background-color: #95BCF2" id="div1">
            Gestión de Curriculos
        </div>
        <div style="border:1px solid black;font-family:Comic Sans MS;height:300px">
            <p><a href="frmCurso.aspx" style="text-decoration:none" >Actualizar Cursos</a></p>
            
            <p><a href="frmSilabo.aspx" style="text-decoration:none">Silabos</a></p>
        </div>
    </div>
    <div style="float:left;width:85%;min-height:80%">
       <div style="margin:5px; font-family:Comic Sans MS">
            <asp:HiddenField runat="server" ID="hidCodCurso"/>
            <div style="text-align:center">
                <h1> Lista de Cursos </h1>
            </div>

            <!-- BOTONERA -->
            <div style="width:100%; height:30px; background-color:#3B5998;">
                &nbsp;&nbsp;
                <asp:Button runat="server" ID="btnCrear" Text="Crear" onclick="btnCrear_Click"/>
                <asp:Button runat="server" ID="btnModificar" Text="Modificar" 
                    onclick="btnModificar_Click"/>
                <asp:Button runat="server" ID="btnEliminar" Text="Eliminar" 
                    onclick="btnEliminar_Click"/>
                <asp:Button runat="server" ID="btnEliminarTrue" Text="Eliminar" style="display:none"
                    onclick="btnEliminarTrue_Click"/>
            </div>
            <!-- GRILLA -->
            <div>
                <div>
                    <table>
                        <tr>
                            <td>Nombre del Curso</td>
                            <td>:</td>
                            <td><asp:TextBox runat="server" ID="txtCurso" Width="180"></asp:TextBox></td>
                            <td>&nbsp;&nbsp;</td>
                            <td>Área de Conocimiento</td>
                            <td>:</td>
                            <td><asp:DropDownList runat="server" ID="cboAreaConocimiento" Width="180"></asp:DropDownList></td>
                            <td>&nbsp;&nbsp;</td>
                            <td><asp:Button runat="server" ID="btnConsultar" Text="Consultar" 
                                    onclick="btnConsultar_Click"/></td>
                        </tr>
                    </table>
                </div>
                <div style="margin-top:5px">
                    <asp:GridView runat="server" ID="gvCursos" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="80%" ons
                       ><%-- OnRowDataBound="gvCursos_RowDataBound" --%>
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox runat="server" id="chkCurso"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="codCurso" HeaderText="Código" />
                            <asp:BoundField DataField="nomCurso" HeaderText="Nombre" />
                            <asp:BoundField DataField="canHoras" HeaderText="Horas" />
                            <asp:BoundField DataField="creditos" HeaderText="Créditos" />
                            <asp:BoundField DataField="titulo" HeaderText="Área Conocimiento" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" BorderColor="Black" BorderStyle="solid" BorderWidth="1px" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB"  BorderColor="Black" BorderStyle="solid" BorderWidth="1px"  />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
    
    </div>
    <div style="clear:both"></div>
    <div style="width:100%; height:5%;background-color:#DDDDDD;font-family:Comic Sans MS; margin-top:5px ">
    <span style="color:#0C5394;font-size:18px">CIBERTEC</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            Virtu@l (c). 2014. Todos los Derechos Reservados.
    </div>
    </form>
</body>
</html>
